package c.c.c.a.i.a;

import android.annotation.SuppressLint;
import android.content.Context;
import c.c.c.a.f;
import java.util.HashMap;
import java.util.Map;

/* compiled from: CrashContextAssembly */
public class e {
    @SuppressLint({"StaticFieldLeak"})
    public static volatile e e;
    public Context a;
    public Map<f, c> b = new HashMap();
    public b c;
    public d d;

    /* compiled from: CrashContextAssembly */
    public static /* synthetic */ class a {
        public static final /* synthetic */ int[] a;

        /* JADX WARNING: Missing exception handler attribute for start block: B:7:0x0012 */
        /* JADX WARNING: Failed to process nested try/catch */
        /* JADX WARNING: Can't wrap try/catch for region: R(8:0|(2:1|2)|3|5|6|7|8|10) */
        /* JADX WARNING: Missing block: B:11:?, code skipped:
            return;
     */
        static {
            /*
            c.c.c.a.f.values();
            r0 = 9;
            r0 = new int[r0];
            a = r0;
            r1 = 1;
            r0[r1] = r1;	 Catch:{ NoSuchFieldError -> 0x000c }
        L_0x000c:
            r0 = 3;
            r1 = a;	 Catch:{ NoSuchFieldError -> 0x0012 }
            r2 = 2;
            r1[r0] = r2;	 Catch:{ NoSuchFieldError -> 0x0012 }
        L_0x0012:
            r1 = a;	 Catch:{ NoSuchFieldError -> 0x0017 }
            r2 = 7;
            r1[r2] = r0;	 Catch:{ NoSuchFieldError -> 0x0017 }
        L_0x0017:
            return;
            */
            throw new UnsupportedOperationException("Method not decompiled: c.c.c.a.i.a.e$a.m1073clinit():void");
        }
    }

    public e(Context context) {
        this.a = context;
        this.c = new b(context);
        this.d = new d(this.a);
    }

    public c.c.c.a.e.a a(f fVar, c.c.c.a.e.a aVar) {
        c cVar = (c) this.b.get(fVar);
        if (cVar == null) {
            int i = a.a[fVar.ordinal()];
            if (i == 1) {
                cVar = new g(this.a, this.c, this.d);
            } else if (i == 2) {
                cVar = new a(this.a, this.c, this.d);
            } else if (i == 3) {
                cVar = new f(this.a, this.c, this.d);
            }
            if (cVar != null) {
                this.b.put(fVar, cVar);
            }
        }
        return cVar != null ? cVar.a(aVar) : aVar;
    }
}
